package com.example.mybatis;

import com.example.mybatis.pojo.User;

import java.util.List;

/**
 * @Classname UserDao
 * @Date 2020/12/20 22:39
 * @@author admin
 * @Description 根据条件CRUD
 */
public interface UserMapper {

    //查询所有用户
    List<User> findAll() throws Exception;


    //根据条件进行用户查询
    User findByCondition(User user) throws Exception;

    int insert(User user);

    int delete(User user);

    int update(User user);

}
